package com.ddwl.user.job;

import com.ddwl.user.service.UserService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import com.xxl.job.core.log.XxlJobLogger;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author hemiaojun
 * @Date 2021/5/24 18:38
 */
@Component
public class UserAuthJob {

    @Resource
    private UserService userService;

    /**
     * 分销用户微信认证消息同步五八马用户
     *
     */
    @XxlJob("userAuthJob")
    public ReturnT<String> userAuthJobHandler(String param) throws Exception {
        XxlJobLogger.log("开始执行分销用户微信认证消息同步五八马用户任务");
        userService.userAuthJobHandler();
        return ReturnT.SUCCESS;
    }

}
